package cn.edu.xmu.oomall.liquidation.microservice;

import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author HertzLiu
 * @create_time 2021/12/17 10:18
 * @package_name cn.edu.xmu.oomall.liquidation.microservice
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description 必做模块
 */

@FeignClient(name = "goods-service")
public interface GoodsService {

    @GetMapping("internal/products/{id}/commissionrate")
    InternalReturnObject<Integer> getCommissionRate(@PathVariable Long id);
}
